package com.wit.witmg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author bob
 * @since 2025-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TProdtask对象", description="生产计划表")
public class TProdtask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "状态（0-未排产，1-已排料，2-已排产，3-生产中，4-入库中，5-已完成；6-作废）")
    private Integer stat;

    private String ph;//批号

    @ApiModelProperty(value = "产品编码")
    private String bn;

    @ApiModelProperty(value = "产品名称")
    private String na;

    @ApiModelProperty(value = "型号规格")
    private String size;

    @ApiModelProperty(value = "产品备注")
    private String remark;

    @ApiModelProperty(value = "订单id（可关联多个，空缺则表示补库存）")
    private String pid;

    @ApiModelProperty(value = "订单需求数量")
    private Double nqt;

    @ApiModelProperty(value = "订单需求日期")
    private Date nedate;

    @ApiModelProperty(value = "计划投产数量")
    private Integer pqt;

    @ApiModelProperty(value = "允许偏差（-，+）")
    private String offset;

    @ApiModelProperty(value = "计划完成日期")
    private Date pedate;

    @ApiModelProperty(value = "入库数量")
    private Double inqt;

    @ApiModelProperty(value = "实际完工日期")
    private Date sdate;

    private Date edate;//完工时间

    @ApiModelProperty(value = "部门代号")
    private Integer oid;

    @ApiModelProperty(value = "编制人guid")
    private Long guid;

    private String unit;//单位

    private Double amount;//库存金额
}
